import gr from '@/utils/guard'


export default [
  {
    path: '/questions',
    component: () => import('@/views/quest/index.vue'),
    meta: { title: '问题' }
  }, {
    path: '/questions/ask',
    component: () => import('@/views/quest/ask.vue'),
    meta: { title: '问题', guard: () => gr.isLogged('/login') }
  }, {
    path: '/question/:id/edit',
    component: () => import('@/views/quest/edit.vue'),
    meta: { title: '问题', guard: () => gr.isLogged('/login') }
  }, {
    path: '/question/:id',
    component: () => import('@/views/quest/detail.vue'),
    meta: { title: '问题' }
  },
]